home *** CD-ROM | disk | FTP | other *** search
- @echo off
- cls
- if [%1]==[] goto instruct
- if [%2]==[] goto instruct
- echo
- if EXIST %1\CT.O goto doinst
- echo
- echo ┌──────────────────────────────────────────────────────────────────
- echo │ The CALLING TREE could not be found in this path: {%2}
- echo ╘══════════════════════════════════════════════════════════════════
- goto 2inst
- :doinst
- if EXIST %2\??.O goto overnew
- echo ┌───────────────────────────────────────────────────────────────────╖
- echo │ ║
- echo │ This is an ORIGINAL {NEW} installation of THE CALLING TREE. ║
- echo │ NO changes will be made to your AUTOEXEC.BAT or CONFIG.SYS files! ║
- echo │ A system environment variable 'ZTREE' will be set to CT location ║
- echo │ ║
- echo ╘═══════════════════════════════════════════════════════════════════╝
- echo Install NEW version from [%1\] to [%2\]?
- goto crct
- :overnew
- echo ┌───────────────────────────────────────────────────────────────────╖
- echo │ *** Old CALLING TREE files have been detected *** ║
- echo │ This is an UPGRADE installation of THE CALLING TREE. ║
- echo │ ║
- echo │ This installation procedure will rename some of the appropriate ║
- echo │ older files and then copy the new files. ║
- echo │ NO changes will be made to your AUTOEXEC.BAT or CONFIG.SYS files! ║
- echo │ ║
- echo ╘═══════════════════════════════════════════════════════════════════╝
- echo Install UPGRADE version from [%1\] to [%2\]?
- :crct
- echo Correct?...
- echo
- echo Press 'CONTROL C' to cancel or any other key to continue installation
- pause >nul
- if EXIST %2\CT.O goto renamect
- md %2
- goto copyct
- :renamect
- echo
- echo Renaming Old files....
- if EXIST %2\??OLD.O del %2\??old.o >nul
- ren %2\??.o %2\??old.o >nul
- echo
- echo Copying New files, One Moment....
- copy %1\*.* %2\ >nul
- cls
- echo
- echo ┌─────────────────────────────────────────────────────────────────────────╖
- echo │ The OLD version of THE CALLING TREE has been rename as ??OLD.*. The ║
- echo │ file extensions were kept the same. ║
- echo │ ║
- echo │ The NEW version of THE CALLING TREE has been copied into the old ║
- echo │ CALLING TREE directory. ║
- echo │ ║
- echo │ Step.... ║
- echo │ 1. Set a system environment variable 'ZTREE' equal to CTREE directory ║
- echo │ 2. Make sure you are in THE CALLING TREE directory now. ║
- echo │ 3. To start the program type: 'CT' [ENTER]. ║
- echo │ 4. CT will automatically detect any old data files (if any) and ║
- echo │ convert that data. All old data files will be preserved as ???old.* ║
- echo │ 5. If all is working fine you will want to manually delete all files ║
- echo │ in your CALLING TREE directory with the 'old' in the file name. ║
- echo ╘═════════════════════════════════════════════════════════════════════════╝
- goto endchg
- :copyct
- echo
- echo Copying New files, One Moment....
- copy %1\*.* %2\ >nul
- cls
- echo
- echo ┌─────────────────────────────────────────────────────────────────────────╖
- echo │ The NEW version of THE CALLING TREE has been copied to %2 ║
- echo │ ║
- echo │ a. Make sure you are in THE CALLING TREE directory now. ║
- echo │ b. Make sure the system environment variable ZTREE is set. ║
- echo │ c. To start the program type: 'CT' [ENTER]. ║
- echo │ d. If you have a registration number you may enter it in the ║
- echo │ Operator Information screen at start up. ║
- echo ╘═════════════════════════════════════════════════════════════════════════╝
- goto endchg
- :instruct
- cls
- :2inst
- echo ┌─────────────────────────────────────────────────────────────────────────╖
- echo │ THE CALLING TREE - Installation ║
- echo │ ║
- echo │ You MUST use this 'INSTALL' program to directly upgrade an older ║
- echo │ version of THE CALLING TREE. This 'Install' program will install the ║
- echo │ new version over top of the old version in the old version directory. ║
- echo │ ║
- echo │ Otherwise, if you are just installing THE CALLING TREE for the first ║
- echo │ time, you may 'Install' or DOS Copy this new version to a New ║
- echo │ directory on your hard disk. Switch to that directory and type 'CT' ║
- echo │ to start. You may copy (Import) the Old Data files once installed. ║
- echo │ ║
- echo │ Note: If you have unarchived the program in a new directory on your ║
- echo │ systems' hard disk, then set the system environment variable 'ZTREE' ║
- echo │ equal to the directory where CT is located and type 'CT' to start. ║
- echo │ ║
- echo │ ---------- INSTALLATION COMMAND PARAMETERS --------------- ║
- echo │ INSTALL {From DRIVE:\DIRECTORY} {To DRIVE:\DIRECTORY} ║
- echo │ Example: INSTALL B: C:\CTREE ║
- echo │ Note: You must NOT include '\' as last character in path ║
- echo │ ║
- echo ╘═════════════════════════════════════════════════════════════════════════╝
- goto veryend2
- :endchg
- c:
- cd %2
- if EXIST cb.o goto delfil
- d:
- cd %2
- if EXIST cb.o goto delfil
- e:
- cd %2
- if EXIST cb.o goto delfil
- f:
- cd %2
- if EXIST cb.o goto delfil
- g:
- cd %2
- if cb.o goto delfil
- goto veryend2
- :delfil
- del %2\ztree*.* >nul
- :veryend
- dir ct*.* /w
- set ztree=%2
- :veryend2
-